vt-d: avoid obtaining iommu->register_lock too early in
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 12:49:35 +0000 (13:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 12:49:35 +0000 (13:49 +0100)
commit4fe3160cbc7c4e71a85db069186ca26407acba77
treee71a4fb1ce1e3d0288c3c11754bad277d6ee1864
parentad46d7a6284b16aeee5076d29adea88c51deb904
vt-d: avoid obtaining iommu->register_lock too early in
dma_msi_set_affinity()

If set_desc_affinity() fails, the current code doesn't release the
spinlock. We should obtain the lock at a later place.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen/drivers/passthrough/vtd/iommu.c